package com.it135.citytraffic.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class TrafficInfoVO implements Serializable {


    private Long id;

    private String name;

    /**
     * 畅通所占比例
     */
    private String expedite;

    /**
     * 缓行所占百分比
     */
    private String congested;

    /**
     * 拥堵所占百分比
     */
    private String blocked;

    /**
     * 未知路段所占百分比
     */
    private String unknown;

    /**
     * 路况,0未知;  1畅通;   2缓行;    3拥堵
     */
    private Integer status;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 路况综述
     */
    private String description;
    private String weather;


}
